import request from "@/request/request.js"

// 客服-帮助中心
export function getKfHelpList(params) {
  return request({
    url: "/zb/config/kfHelp",
    method: "get",
    params,
  })
}
// 客服-服务热线

export function getKfConcatList(params) {
  return request({
    url: "/zb/config/kfConcat",
    method: "get",
    params,
  })
}

// 登录
export function login(params) {
  return request({
    url: "/member/auth/social-login",
    method: "post",
    data: params,
  })
}
// 注册
export function register(params) {
  return request({
    url: "/member/auth/mini-app-login",
    method: "post",
    data: params,
  })
}
// 获得基本信息
export function getUser(params) {
  return request({
    url: "/member/user/get",
    method: "get",
    headers: {
      isToken: true,
    },
    params,
  })
}